Sum of n numbers calculator